package com.gs.netty.client;

import lombok.Data;

@Data
public class SendResult<T> {
    /**
     * 响应编码
     */
    private int code;
    /**
     * 响应消息
     */
    private String message;
    /**
     * 响应数据
     */
    private T data;

    public  static <T>  SendResult<T> createSendResult(String code, String message, T data) {

        return  new SendResult<>();
    }
}
